package com.artisan.web.action;

import com.artisan.medium.admin.pojo.ShiroUser;
import com.artisan.model.User;
import org.apache.shiro.SecurityUtils;

/**
 * Created by yang on 2017/7/1.
 * Controller基类
 */
public class BaseController {

    /**
     * 获取sessionUser
     * */

    public User getShiroUser(){
        return (User) SecurityUtils.getSubject().getSession().getAttribute("shiroUser");
    }

}
